//
//  Macros.h
//  CYWFrame
//
//  Created by Macx on 2017/7/21.
//  Copyright © 2017年 Macx. All rights reserved.
//

#ifndef Macros_h
#define Macros_h

// UI主色调
#define UIMainColor @"#F6B837"
#define UIMainColorRGB RGB(246, 184, 55)
#define UISeparatedColorRGB RGB(238, 238, 238)

// 选中状态色调
#define UITabBarSelectedColor @"#E84D2A"
#define UITabBarNormalColor @"#a9b7b7"

/**
 *  持久化登录
 */

#define SetUserDefaule(obj, key) [[NSUserDefaults standardUserDefaults] setObject:obj forKey:key]
#define GetUserDefaule(key)      [[NSUserDefaults standardUserDefaults] valueForKey:key]
#define RemoveUserDefaule(key)   [[NSUserDefaults standardUserDefaults] removeObjectForKey:key]

#define SetAppEnvironment(obj, key) [[NSUserDefaults standardUserDefaults] setObject:obj forKey:key]
#define GetAppEnvironment(key)      [[NSUserDefaults standardUserDefaults] valueForKey:key]
#define SetAppEnvironmentBG(obj, key) [[NSUserDefaults standardUserDefaults] setObject:obj forKey:key]
#define GetAppEnvironmentBG(key)      [[NSUserDefaults standardUserDefaults] valueForKey:key]

#define SetAppVersion(obj, key) [[NSUserDefaults standardUserDefaults] setObject:obj forKey:key]
#define GetAppVersion(key)      [[NSUserDefaults standardUserDefaults] valueForKey:key]

#define AppVersion @"AppVersion" // 检测版本更新

#define AppEn @"AppEn"            // 环境区分
#define AppEnBG @"AppEnBG"        // 后台返回的

#define USERNAME @"userName"            // 记住账号
#define USERPASSWORD @"userPassword"    // 记住密码
#define USERINFO @"userInfo"            // 用户信息
#define Token @"token"                  // token
#define CURRLIVE @"currLive"            // 当前直播信息
#define LIVEHOSTID @"liveHostId"        // 当前直播主播id
#define ISSIGN      @"isSign"           // 签到
#define SelfAdmin      @"isSelfAdmin"           // 当前自己是否管理员

// 网络请求秘钥
#define JWTSecret                       @"25b991321a2c677e2e16629d185e4501"
#define JWTTokenSecret                  @"cywkj@#"

// appId
#define BuglyAppId                      @"09a52f3174"

// mob == share
//#define MOBAppKey                       @"201ca2194a2c0"
//#define MOBAppSecret                    @"43ce6375ff59a353464765225deb47d7"
#define ShareAppId                      @"28b96228ed50c"
#define ShareAppSecret                  @"adf4645635fdeffcb5e11aa748084823"

//wxa7d5f2ce35154eab(old) wx48a156e3569e5adc(new)
#define Share_wxId                      @"wxa7d5f2ce35154eab"
//5934abb02573dff36963863f7c54bacf(old) 426c07a923bef27179106f5c80a65276(new)
#define Share_wxSecret                  @"5934abb02573dff36963863f7c54bacf"
#define Share_qqId                      @"101518587"
#define Share_qqKey                     @"6a2fa5e3e2a38fc8fcb858818d89ddf6"
#define Share_sinaKey                   @"4226356047"
#define Share_sinaSecret                @"7b30bf91609b1db77e80cef3ce7e350d"

#define JPushAppId                      @"8869374f3aea8c7da64dbdd3"

#define WX_PayId                        @"wxa7d5f2ce35154eab"

#define AlipayId						@"alipaycywlivejobshop"

#define AMapKey							@"cfd1acf473b0653932566437d4c944ec"

#define XFAppId                         @"5a1e73d7"

#endif /* Macros_h */
